<%if(@is_admin)%>
<%form_for(user, :url => {:action => 'update', :controller => 'admin/users', :method => 'post'}) do |f|%>
<tr>
	<td align="left"><%=link_to user.name, show_admin_users_path(:id => user.id)%></td>
	<td align="left"><%=user.email%></td>
	<td align="left"><%=format_date(user.created_at)%></td>
	<td align="left"><%=f.check_box(:is_admin,:value => user.is_admin, :class => 'check',:onclick => 'this.form.submit()')%></td>
	<td align="center"><%= link_to 'Verwijder', delete_admin_users_path(:id => user.id), :confirm => 'Weet u het zeker?', :method => :delete %></td>
</tr>
<%=f.hidden_field(:id, :value => user.id)%>
<%end%>
<%end%>